﻿<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="admin/view/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body background="upload/10082202447e3a23df3e842fe8.jpg">
  <h1 class="text-center">动漫列表</h1>
  <h2 class="text-lift"><a href="admin.php?c=user&m=display">后台首页</a></h2>
  <h3 class="text-right"><a href="admin.php?c=cartoon&m=form">添加动漫</a></h3>
  <h3>查找</h3>
 <table align="center" width="80%">
 <tr><td  align="left" >
 <form method=post action="admin.php?c=cartoon&m=search1">
    请输入用户名：
  <input type="text" name="key">
  <input type="submit" name='search' value="搜索">  
 </form> 
 </td></tr>
 </table>
<table class="table table-hover">

<form class="form-horizontal" action="dologin.php" enctype="multipart/form-data">
  <tr>
  <td class="active">序号</td>
  <td class="success">名称</td>
  <td class="warning">简介</td>
  <td class="info">视频大小</td>
  <td class="success">动漫</td>
  <td class="info">上传时间</td>
  <!-- <td class="danger">图片</td> -->
  <td class="info">下载地址</td>
   <td class="success">点击次数</td>
    <td class="success">动漫图片</td>
      <td class="success">操作</td>
</tr>
<?php
 /*if (array_key_exists("uid", $data['users'])) {
   # code...*/
 $result=$data['cartoon'];
  foreach($result as $row){
   echo '<tr>';
   echo '<td>'.$row['id'].'</td>';
   echo '<td>'.$row['name'].'</td>';
   echo '<td>'.$row['intro'].'</td>';  
   echo '<td>'.$row['size'].'</td>'; 
   echo '<td>'.($row['tid']).'</td>';
   echo '<td>'.$row['uploadtime'].'</td>';
 //echo '<td align="center"><img src=images/'.$row['pic'].' width=60 height=80></td>';
     echo '<td>'.$row['address'].'</td>';
     echo '<td>'.$row['hint'].'</td>';
    echo '<td align="center"><img src='.'upload/'.$row['pic'].' width=60 height=80 alt="无头像"></td>';
   echo '<td><a href="admin.php?c=cartoon&m=mod&id='.$row['id'].' ">修改</a> | 
   <a href="admin.php?c=cartoon&m=del&id='.$row['id'].'" onClick="return confirm(\'确定要删除吗？\');">删除</a></td>';
   echo '</tr>';  
  }
  ?> 
</form>
</table>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="js/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>